//
//  AppListViewController.h
//  LimitFree
//
//  Created by LZXuan on 15-6-25.
//  Copyright (c) 2015年 轩哥. All rights reserved.
//

#import "BaseViewController.h"
#import "AFNetworking.h"

#import "JHRefresh.h"

@interface AppListViewController : BaseViewController <UITableViewDataSource,UITableViewDelegate>
{
    AFHTTPRequestOperationManager *_manager;
    UITableView *_tableView;
    NSMutableArray *_dataArr;
    NSInteger _currentPage;
    
    BOOL _isRefreshing;
    BOOL _isLoadMore;
    
}
@property (nonatomic)BOOL isRefreshing;
@property (nonatomic)BOOL isLoadMore;

@property (nonatomic,strong) UITableView *tableView;
@property (nonatomic,strong) NSMutableArray *dataArr;
@property (nonatomic) NSInteger currentPage;
//分类id 号
@property (nonatomic,copy) NSString* categoryId;


//传值 接口地址
@property (nonatomic,copy) NSString *requestUrl;
//分类的类型 (限免 免费...)
@property (nonatomic,copy) NSString *categoryType;

- (void)leftClick:(UIButton *)button;
- (void)rightClick:(UIButton *)button;
//刷新
#pragma mark - 如果不满足子类 那么可以重写
- (void)creatRefreshView;
- (void)endRefreshing;
//第一次下载
- (void)firstDownload;
//增加下载任务
- (void)addTaskWithUrl:(NSString *)url isRefresh:(BOOL)isRefresh;


@end




